<?php
/**
 * @name designer.php
 * @date Created on 2015-12-3
 * @author liulei
 */
namespace haibao\cms\model\data\designer;

class DesignerAttentionRecord extends \haibao\cms\model\data\Base{
	
const RECORD_TYPE_LIKE = 1;

	const RECORD_TYPE_COMMENT = 2;

	const RECORD_TYPE_BLOG = 3;

	/**
	 * 状态状态（0：不可用，1：可用）
	 */
	const STATUS_DISABLE = 0;
	const STATUS_ENABLE = 1;


	/*
	 * 关注用户uid
	*/
	public $UserId;
	/*
	 * 设计师Id
	*/
	public $DesignerId;
	/*
	 *关注日期
	*/
	public $CreateTime;
	/*
	 *操作类型
	*/
	public $RecordType;
	/*
	 *状态
	*/
	public $Status;
	
	public $DesignerAttentionRelated;
	public $DesignerAttentionRiseCount;

	public function __construct(){
		parent::__construct();
		$this->intField('UserId', 'UserId',true);
		$this->intField('DesignerId', 'DesignerId',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('RecordType', 'RecordType',true);
		$this->intField('Status', 'Status',true);
		$this->setTableName('DesignerAttentionRecord');
	}
}